﻿using System;
using System.Collections.Generic;

namespace SmartCommunity.Models;

/// <summary>
/// 小区
/// </summary>
public partial class AreaEntity
{
    /// <summary>
    /// 小区ID
    /// </summary>
    public Guid AreaId { get; set; }

    /// <summary>
    /// 小区名
    /// </summary>
    public string AreaName { get; set; } = null!;

    /// <summary>
    /// 社区ID
    /// </summary>
    public Guid CommunityId { get; set; }

    /// <summary>
    /// 社区名称
    /// </summary>
    public string CommunityName { get; set; } = null!;

    /// <summary>
    /// 小区地址
    /// </summary>
    public string AreaAddr { get; set; } = null!;

    /// <summary>
    /// 建筑面积
    /// </summary>
    public decimal? BuildArea { get; set; }

    /// <summary>
    /// 绿化面积
    /// </summary>
    public decimal? PlantArea { get; set; }

    /// <summary>
    /// 占地面积(总面积)
    /// </summary>
    public decimal? TotalArea { get; set; }

    /// <summary>
    /// 排序号
    /// </summary>
    public int? SortNo { get; set; }

    /// <summary>
    /// 小区简介
    /// </summary>
    public string? Remark { get; set; }

    /// <summary>
    /// 是否作废
    /// </summary>
    public bool Disabled { get; set; }

    /// <summary>
    /// 创建人
    /// </summary>
    public string CreatedBy { get; set; } = null!;

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreatedTime { get; set; }

    /// <summary>
    /// 修改人
    /// </summary>
    public string UpdatedBy { get; set; } = null!;

    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime UpdatedTime { get; set; }

    public virtual ICollection<BuildingEntity> Buildings { get; set; } = new List<BuildingEntity>();

    public virtual CommunityEntity Community { get; set; } = null!;
}
